<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<table class="table table-hover table-bordered b-fff">
    <thead>
    <tr>
        <th class="text-center">ID</th>
        <th class="text-center">购买时间</th>
        <th class="text-center">课程名称</th>
        <th class="text-center">课程类型</th>
        <th class="text-center">学习进度</th>
        <th class="text-center">课程总时长</th>
        <th class="text-center">状态</th>
<!--        <th class="text-center">操作</th>-->
    </tr>
    </thead>
    <tbody>
    <tr  th:if="${#lists.isEmpty(dataMap['list'])}">
        <td colspan="7">
            <div class="noDataTipsBox">
                <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
            </div>
        </td>
    </tr>
    <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="courseBuyRecord : ${dataMap['list']}">
        <td class="text-center" th:text="${courseBuyRecord['orderId']}"></td>
        <td class="text-center">
            <span class="line" th:text="${#strings.substring(courseBuyRecord['createTime'],0,16)}"></span>
        </td>
        <td class="text-center" th:text="${courseBuyRecord['course']['courseName']}"></td>
        <td class="text-center">
            <span th:if="${courseBuyRecord['courseTypeKey']}=='ARTICLE'">文章课程</span>
            <span th:if="${courseBuyRecord['courseTypeKey']}=='COLUMNS'">专栏课程</span>
            <span th:if="${courseBuyRecord['courseTypeKey']}=='LIVE'">直播课程</span>
            <span th:if="${courseBuyRecord['courseTypeKey']}=='VIDEO'">录播课程</span>
            <span th:if="${courseBuyRecord['courseTypeKey']}=='PACKAGE'">套餐课程</span>
        </td>
        <td class="text-center">
            <span class="line" th:text="${courseBuyRecord['studySpeed']==null?0:courseBuyRecord['studySpeed'] + '%'}"></span>
        </td>
        <td class="text-center">
            <span class="line" th:text="${courseBuyRecord['totleTimes']}"></span>
        </td>
        <td class="text-center">
                <span th:if="${courseBuyRecord['courseStatus']}=='SUCCESS'">
                    <span class="label label-info"></span>可使用
                </span>
            <span th:if="${courseBuyRecord['courseStatus']}=='REFUND'">
                    <span class="label label-danger"></span>已退费
                </span>
            <span th:if="${courseBuyRecord['courseStatus']}=='CLOSE'">
                    <span class="label label-danger"></span>已关闭
                </span>
        </td>
<!--        <td class="text-center"><a href="javascript:void(0)" th:attr="data-id=${courseBuyRecord['orderId']}" class="btn btn-primary btn-sm course-count">查看详情</a></td>-->
    </tr>
    </tbody>
</table>
<!-- 分页，开始 -->
<div data-th-replace="layout/adminPage"></div>
<!-- 分页，结束 -->
